home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / program / ixemlsrc.lha / ixemul / library / debugstub.c < prev    next >
Text File  |  1996-01-01  |  1KB  |  54 lines

  1. /*
  2.  *  This file is part of ixemul.library for the Amiga.
  3.  *  Copyright (C) 1994 Rafael W. Luebbert
  4.  *
  5.  *  This library is free software; you can redistribute it and/or
  6.  *  modify it under the terms of the GNU Library General Public
  7.  *  License as published by the Free Software Foundation; either
  8.  *  version 2 of the License, or (at your option) any later version.
  9.  *
  10.  *  This library is distributed in the hope that it will be useful,
  11.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  *  Library General Public License for more details.
  14.  *
  15.  *  You should have received a copy of the GNU Library General Public
  16.  *  License along with this library; if not, write to the Free
  17.  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  *  $Id: debugstub.s,v 1.1 1994/06/19 15:09:38 rluebbert Exp $
  20.  *
  21.  *  $Log: debugstub.s,v $
  22. # Revision 1.1  1994/06/19  15:09:38  rluebbert
  23. # Initial revision
  24. #
  25.  */
  26.  
  27. asm("
  28.     .globl    KPutChar
  29.     .globl  _KPrintF
  30.     .globl    KPutFmt
  31.     .globl    KDoFmt
  32.  
  33. KPutChar:    MOVE.L    A6,-(SP)
  34.     MOVE.L    4,A6
  35.     JSR    -516(A6)
  36.     MOVE.L    (SP)+,A6
  37.     RTS
  38.  
  39. _KPrintF:
  40.     MOVE.L    4(SP),A0
  41.     LEA    8(SP),A1
  42. KPutFmt:    MOVEM.L    A2,-(SP)
  43.     LEA    KPutChar,A2
  44.     BSR.S    KDoFmt
  45.     MOVEM.L    (SP)+,A2
  46.     RTS
  47.  
  48. KDoFmt:    MOVE.L    A6,-(SP)
  49.     MOVE.L    4,A6
  50.     JSR    -522(A6)
  51.     MOVE.L    (SP)+,A6
  52.     RTS
  53. ");
  54.